package com.example.demo;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;
import java.nio.charset.StandardCharsets;
//two
public class Client {
    //测试岗一下回滚  第一次提交
    public static void main(String[] args) throws IOException, InterruptedException {
        Integer i = 6;
        int i1 = i.intValue();
        SocketChannel client = SocketChannel.open();
        client.connect(new InetSocketAddress("localhost", 8080));
        System.out.println("第2次");
        client.write(StandardCharsets.UTF_8.encode("第2次"));
        client.close();
    }
}
